runtime.mspan.freeindex (field)
22 uses
runtime (current package)
arena.go#L979: s.freeindex = 1
malloc.go#L895: result := s.freeindex + uintptr(theBit)
malloc.go#L902: s.freeindex = freeidx
malloc.go#L1128: span.freeindex = 1
malloc.go#L1178: span.freeIndexForScan = span.freeindex
mbitmap.go#L139: sfreeindex := s.freeindex
mbitmap.go#L155: s.freeindex = snelems
mbitmap.go#L168: s.freeindex = snelems
mbitmap.go#L184: s.freeindex = sfreeindex
mcentral.go#L149: s.freeindex = freeIndex
mcentral.go#L177: if n == 0 || s.freeindex == s.nelems || uintptr(s.allocCount) == s.nelems {
mcentral.go#L180: freeByteBase := s.freeindex &^ (64 - 1)
mcentral.go#L187: s.allocCache >>= s.freeindex % 64
mgcsweep.go#L606: if !mbits.isMarked() && (abits.index < s.freeindex || abits.isMarked()) {
mgcsweep.go#L631: if s.freeindex < s.nelems {
mgcsweep.go#L637: obj := s.freeindex
mgcsweep.go#L660: s.freeindex = 0 // reset allocation index to start of span.
mgcsweep.go#L829: print("runtime: marked free object in span ", s, ", elemsize=", s.elemsize, " freeindex=", s.freeindex, " (bad use of unsafe.Pointer? try -d=checkptr)\n")
mgcsweep.go#L835: alloc := i < s.freeindex || abits.isMarked()
mheap.go#L436: freeindex uintptr
mheap.go#L1409: s.freeindex = 0
mheap.go#L1690: span.freeindex = 0
The pages are generated with Golds v0.6.7. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |